/*
 * @Author: your name
 * @Date: 2021-01-04 16:07:57
 * @LastEditTime: 2021-01-04 17:11:27
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \H5 2010 studyd:\H5 2010 练习\考试\第三阶段 Vue\proj_muke\src\router\routes.js
 */
const Home = () => import('@/views/home')
const Lesson = () => import('@/views/lesson')
const Message = () => import('@/views/message')
const Mine = () => import('@/views/mine')

// const NavBar = () => import('@/components/nav-bar')
const TabBar = () => import('@/components/tab-bar')

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    components: {
      footer: TabBar,
      main: Home
    },
    meta: {
      isTab: true,
      title: '首页',
      icon: 'home-o'
    }
  },
  {
    path: '/message',
    name: 'Message',
    components: {
      footer: TabBar,
      main: Message
    },
    meta: {
      isTab: true,
      title: '消息',
      icon: 'chat-o'
    }
  },
  {
    path: '/lesson',
    name: 'Lesson',
    components: {
      footer: TabBar,
      main: Lesson
    },
    meta: {
      isTab: true,
      title: '课程',
      icon: 'notes-o'
    }
  },
  {
    path: '/mine',
    name: 'Mine',
    components: {
      footer: TabBar,
      main: Mine
    },
    meta: {
      isTab: true,
      title: '我的',
      icon: 'user-o'
    }
  }
]

export default routes
